from django import forms
from utils.LoginForm import data_identity


class PublishForm(forms.Form):
    name = forms.CharField(
        label='出版社名'
    )
    email = forms.EmailField(
        label='联系邮箱'
    )
    addr = forms.CharField(
        label='地址',
        required=False,
        initial='保密',
        validators=[data_identity]
    )
    desc = forms.CharField(
        label='简介',
        initial='这是一家神秘的出版社~',
        widget=forms.Textarea
    )
